/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.qloudgen.sec.osgi.shiro.session.impl;

import org.apache.shiro.session.Session;

import org.qloudgen.sec.shiro.SecurityUtil;
import org.qloudgen.sec.osgi.shiro.session.SessionService;

/**
 * <p>Title: Session Service implementation for OSGi</p>
 * <p>Description: Implements session service for osgi container.</p>
 * <p>Copyright: qloudgen/sec 2014</p>
 * @author <a href="mailto:hyq.dd.sun@gmail.com">glue.3M</a>
 */
public class SessionServiceImpl implements SessionService {
	/**
	 * Session.
	 *
	 * @param ticket
	 * @return Session
	 */
	public Session getSession(String ticket) {
		return SecurityUtil.getInstance().getSession( ticket );
	}
}